package com.liuceng.zen.mapper;

import com.liuceng.zen.common.annotations.MyBatisRepository;
import com.liuceng.zen.pojo.domain.Member;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

@MyBatisRepository
public interface MemberMapper extends BaseMapper<Member> {

  Member selectByuserName(String username);

  Member selectByEmail(String email);

  Member findMember(Map<String, Object> params);

  int countMembersByEmail(@Param("excludeId") Integer excludeId, @Param("email") String email);

  int countMembersByCompanyName(@Param("excludeId") Integer excludeId,
      @Param("companyName") String companyName);

  Member selectByWeChat(Map<String, Object> params);
}
